package com.sa.oauth.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;


import java.io.Serializable;
import java.sql.Timestamp;


public class BaseEntity<T> implements Serializable {
    @TableField("ID")
    private T id;
    @Schema(description ="修改人")
    @TableField(
            value = "UPDATE_BY_ID",
            fill = FieldFill.INSERT_UPDATE
    )
    private Long updateById;
    @Schema(description ="修改时间")
    @TableField(
            value = "UPDATE_TIME",
            fill = FieldFill.INSERT_UPDATE
    )
    private Timestamp updateTime;
    @Schema(description ="创建人")
    @TableField(
            value = "CREATE_BY_ID",
            fill = FieldFill.INSERT
    )
    private Long createById;
    @Schema(description ="创建时间")
    @TableField(
            value = "CREATE_TIME",
            fill = FieldFill.INSERT
    )
    private Timestamp createTime;
    @Schema(description ="删除标记")
    @TableField(
            value = "DELETE_FLAG",
            fill = FieldFill.INSERT_UPDATE
    )
    private Integer deleteFlag;

    public T getId() {
        return id;
    }

    public void setId(T id) {
        this.id = id;
    }

    public Long getUpdateById() {
        return updateById;
    }

    public void setUpdateById(Long updateById) {
        this.updateById = updateById;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Long getCreateById() {
        return createById;
    }

    public void setCreateById(Long createById) {
        this.createById = createById;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
}
